projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8eef9
)
Revive dependency recompilation test
author
Aleksey Kladov
<aleksey.kladov@gmail.com>
Thu, 16 Feb 2017 11:18:55 +0000
(14:18 +0300)
committer
Aleksey Kladov
<aleksey.kladov@gmail.com>
Thu, 16 Feb 2017 11:19:40 +0000
(14:19 +0300)
tests/path.rs
patch
|
blob
|
history
diff --git
a/tests/path.rs
b/tests/path.rs
index b0d9adb265885fd5b7b7995e4d53d40cd2de41d6..1b4594fe69e44f8527dcbcaa960f5bd57a03aa25 100644
(file)
--- a/
tests/path.rs
+++ b/
tests/path.rs
@@
-297,9
+297,17
@@
fn no_rebuild_dependency() {
in [..]\n",
p.url(),
p.url())));
- // This time we shouldn't compile bar
+
+ p.change_file("src/foo.rs", r#"
+ extern crate bar;
+ fn main() { bar::bar(); }
+ "#);
+ // Don't compile bar, but do recompile foo.
assert_that(p.cargo("build"),
- execs().with_stdout(""));
+ execs().with_stderr("\
+ [COMPILING] foo v0.5.0 ([..])\n\
+ [FINISHED] dev [unoptimized + debuginfo] target(s) \
+ in [..]\n"));
}
#[test]